public class Test2 {
    public void method() {
        System.out.println("Test2::method");
    }
}

class Test21 extends Test2 {
    public static void main(String[] args) {
        Test2 t = new Test21();
        t.method();
    }

    @Override
    public void method() {
        System.out.println("Test21::method");
    }
}
